package com.infowarelab.config.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;
import org.jradweb.core.orm.AbstractModel;
import org.jradweb.core.orm.validator.Unique;

/**
 * Model class Site.
 * 
 * Created on Mon Jun 30 10:35:35 CST 2008
 * @author Code Generator
 * @version $Id: Site.java 139 2008-10-08 05:20:18Z wagzhi $
 */
@Entity
@Table(name="config_site")
@Unique(propertyName="name", message="{name.validator.unique}")
public class Site extends AbstractModel<Site>{
	private String name;
	private String domainName;
	private Integer maxUserCount;
	
	
	@Column(name="name")
	@NotNull
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="domain_name")
	public String getDomainName() {
		return domainName;
	}
	public void setDomainName(String domainName) {
		this.domainName = domainName;
	}
	@Column(name="max_user_count")
	public Integer getMaxUserCount() {
		return maxUserCount;
	}
	public void setMaxUserCount(Integer maxUserCount) {
		this.maxUserCount = maxUserCount;
	}
	
	
	
}
